package com.achievo.know.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.dayatang.domain.BaseEntity;
import com.dayatang.domain.InstanceFactory;
@Entity
@Table(name="RAMS_AREA")
public class Area extends BaseEntity{
	
	//名称
	@NotNull
	@Column(name="NAME",length=50,nullable=false)
	private String name;
	
	
	@Column(name="IS_SHOW")
	private boolean show;
	
	
	
	public boolean isShow() {
		return show;
	}

	public void setShow(boolean show) {
		this.show = show;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 8670390423884055119L;

	@Override
	public boolean equals(Object arg0) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}
	
	private static AreaRepository areaRepository;

	public static AreaRepository getAreaRepository() {
		if (areaRepository == null) {
			areaRepository = InstanceFactory.getInstance(AreaRepository.class);
		}
		return areaRepository;
	}

}
